﻿document.write('<script type="text/javascript" src="/Themes/js/apidomain.js"></script>');

//jquery
document.write('<script type="text/javascript" src="/plugin/jquery-1.12.4.min.js"></script>');

//easyui
document.write('<link rel="stylesheet" type="text/css" href="/plugin/easyui/themes/icon.css">');
document.write('<link rel="stylesheet" type="text/css" href="/plugin/easyui/themes/default/easyui.css">');
document.write('<script type="text/javascript" src="/plugin/easyui/jquery.easyui.min.js"></script>');
//document.write('<script type="text/javascript" src="/plugin/Easyui/datagrid-groupview.js"></script>');
document.write('<script type="text/javascript" src="/plugin/easyui/locale/easyui-lang-zh_cn.js"></script>');

//layer.js
document.write('<script type="text/javascript" src="/plugin/layer/layer.js"></script>');

//layui
//document.write('<link rel="stylesheet" type="text/css" href="/plugin/layui/css/layui.css">');
//document.write('<link rel="stylesheet" type="text/css" href="/plugin/layui/css/app.css">');
////document.write('<link rel="stylesheet" type="text/css" href="/plugin/layui/css/layui.mobile.css">');
//document.write('<script type="text/javascript" src="/plugin/layui/layui.all.js"></script>');

//编辑器
//document.write('<script type="text/javascript" charset="utf-8" src="/js/plugin/ueditor/ueditor.config.js"></script>');
//document.write('<script type="text/javascript" charset="utf-8" src="/js/plugin/ueditor/ueditor.all.js"> </script> ');
//document.write('<script type="text/javascript" charset="utf-8" src="/js/plugin/ueditor/lang/zh-cn/zh-cn.js"></script>');

//图表
document.write('<script type="text/javascript" src="/plugin/echarts.min.js"></script>');

//webuploader
document.write('<link href="/plugin/webuploader/webuploader.css" rel="stylesheet" />');
document.write('<script src="/plugin/webuploader/webuploader.js"></script>');

//时间插件
document.write('<script src="/plugin/DatePicker/WdatePicker.js" type="text/javascript"></script> ');
document.write('<script src="/plugin/js.cookie.js" type="text/javascript"></script> ');
document.write('<script src="/plugin/moment.js" type="text/javascript"></script> ');

//JS验证插件
document.write('<link rel="stylesheet" href="/plugin/ValidationEngine/validationEngine.jquery.css">');
document.write('<script src="/plugin/ValidationEngine/jquery.validationEngine-zh_CN.js"></script>');
document.write('<script src="/plugin/ValidationEngine/jquery.validationEngine.min.js"></script>');

//自定义控件
document.write('<script type="text/javascript" src="/Themes/Js/base.js"></script>');
document.write('<script type="text/javascript" src="/Themes/Js/Control/control.js"></script>');
document.write('<script type="text/javascript" src="/Themes/Js/Control/FileUpload.js"></script>');
document.write('<script type="text/javascript" src="/Themes/Js/Control/tree.js"></script>');

document.write('<script type="text/javascript" src="/Themes/Js/main.js"></script>');
document.write('<link href="/Themes/Css/Common.css" rel="stylesheet" />');

var closeDialog = function (flag) {
    if (flag == undefined) { flag = true; }
    var id = $.getUrlParamer("timestamp", "");

    var cache = $.rootWindow().windowCache;
    $.each(cache, function (i, e) {
        if (e.id == id) {
            if (e.callback && flag) {
                e.callback();
            }
            if (e.close) {
                e.close();
            }
        }
    });
};


